<script type="text/javascript">
            
    $(function() {		
        $("#character_overview").tablesorter({sortList:[[0,0],[2,1]], widgets: ['zebra']});
        $("#options").tablesorter({sortList: [[0,0]], headers: { 3:{sorter: false}, 4:{sorter: false}}});
    });
 
    $(document).ready(function(){
        //tooltip("p","tooltip");
        //tooltip("tr.odd","tooltip");
    });
</script>
<?
require_once("../config.php");
//require_once("../dev/PhpConsole.php");
switch ($_GET['type']) {
    case "SC":
        $type = "SC";
        $table = "SC";
        break;
    case "RP":
        $type = "SC";
        $table = "RP";
        break;
    case "G":
        $type = "SC";
        $table = "G";
        break;
    case "NSC";
        $type = "NSC";
        $table = "NSC";
        break;
    default:
        $type = "SC";
        $table = "SC";
        break;
}
if (controllerCharacter::getCountByType($type) > 0) {
    ?>

    <table id="character_overview" class="tablesorter" border="0" cellpadding="0" cellspacing="1">
        <thead>
            <tr>
                <?
                getTableHeader($table);
                ?>
            </tr>
        </thead>
        <tbody>	
            <?php
            getTableRows($type, $table);
            ?>
        </tbody>
    </table>
    <?
} else {
    echo "<div class='admin' style='color:#e2ff66;' align='center'>Keine Daten in dieser Liste vorhanden!</div>";
}
?>